"""
URL configuration for mysite project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from stuInfo.views import student,counselor,car,operation_database,admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    # path('admin/', admin.site.urls),
    # 学生信息管理
    path('student/index/', student.index),
    # 查询学生信息
    path('student/query/', student.query),
    # 辅导员信息管理
    path('counselor/index/', counselor.counselor_index),
    # 车辆管理
    path('car/index/', car.car_index),
    path('car/add/', car.car_add),
    path('car/<int:nid>/edit/', car.car_edit),
    path('car/<int:nid>/delete/', car.car_delete),
    path('car/cancel_car_list/', car.cancel_car_list),
    path('car/<int:nid>/cancel_edit', car.car_cancel_edit),
    path('car/<int:nid>/cancel_delete', car.car_cancle_delete),
    # 管理员管理
    path('admin/index/', admin.admin_index),
    path('admin/add/', admin.admin_add),



    # 处理数据库
    path('operation/',operation_database.operation_database)
]
urlpatterns += staticfiles_urlpatterns()
